package com.dzl.integral.dao;

import com.dzl.integral.pojo.WelfareIntegralGrantRecordRel;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import com.dzl.base.mapper.BaseMapper;

import java.math.BigDecimal;

/**
 * 积分分发记录表与积分充值记录表中间表(WelfareIntegralGrantRecordRel)表数据库访问层
 * @author caobucao
 * @date 2021-09-07 16:54:37
 */
@Repository
public interface WelfareIntegralGrantRecordRelMapper extends BaseMapper<WelfareIntegralGrantRecordRel> {

    /**
     * 查询这条充值记录的已分发总积分
     * @date 2021/9/7 17:07
     * @author caobucao
     * @param recordId 充值记录id
     * @return java.math.BigDecimal
     */
    BigDecimal selectSumTotalGrantIntegral(@Param("recordId") Integer recordId);
}
